[  679s] Resolving dependencies................
[  681s] Your lockfile was created by an old Bundler that left some things out.您的锁定文件是由一个旧的 Bundler 创建的，它遗漏了一些东西。
[  681s] You can fix this by adding the missing gems to your Gemfile, running bundle install, and then removing the gems from your Gemfile.
            您可以通过将缺少的 gem 添加到 Gemfile，运行 bundle install，然后从 Gemfile 中删除 gem 来解决此问题。
[  681s] The missing gems are:
[  681s] * nokogiri depended upon by rails-dom-testing
[  681s] * nokogiri depended upon by loofah
[  681s] * nokogiri depended upon by xpath
[  681s] * nokogiri depended upon by capybara
[  681s] * nokogiri depended upon by html2haml
[  681s] * nokogiri depended upon by sanitize


[ 4082s] ## Gemfile
[ 4082s] 
[ 4082s] ### Gemfile
[ 4082s] 
[ 4082s] ```ruby
[ 4082s] # Edit this Gemfile to bundle your application's dependencies.
[ 4082s] # This preamble is the current preamble for Rails 3 apps; edit as needed.
[ 4082s] source 'https://mirrors.huaweicloud.com/repository/rubygems'

https://mirrors.huaweicloud.com/repository/rubygems/gems/


NoMethodError: undefined method `full_name' for nil:NilClass

If not included with the output of your command, run bundle env and paste the output below

This is for an iOS application using Fastlane, we have lots of script in Ruby + Shell + YML for Github Actions.
这是一个使用 Fastlane 的 iOS 应用程序，我们在 Ruby + Shell + YML 中有很多用于 Github Actions 的脚本。
We are migrating from Bitrise to Github so I'm testing our Release flow.
我们正在从 Bitrise 迁移到 Github，所以我正在测试我们的发布流程。
The error happen when we execute the bundle update fastlane.
当我们执行 bundle update fastlane 时会发生错误。

I'm posting into the following toggles all the details I have about this.

[ 4082s] ## Environment
[ 4082s] 
[ 4082s] ```
[ 4082s] Bundler       2.2.32
[ 4082s]   Platforms   ruby, riscv64-linux
[ 4082s] Ruby          3.0.3p157 (2021-11-24 revision 3fb7d2cadc18472ec107b14234933b017a33c14d) [riscv64-linux]
[ 4082s]   Full Path   /usr/bin/ruby
[ 4082s]   Config Dir  /etc
[ 4082s] RubyGems      3.2.32
[ 4082s]   Gem Home    /home/abuild/rpmbuild/BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0
[ 4082s]   Gem Path    /home/abuild/rpmbuild/BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0
[ 4082s]   User Home   /home/abuild
[ 4082s]   User Path   /home/abuild/.local/share/gem/ruby
[ 4082s]   Bin Dir     /home/abuild/rpmbuild/BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0/bin
[ 4082s] OpenSSL       
[ 4082s]   Compiled    OpenSSL 1.1.1l  24 Aug 2021
[ 4082s]   Loaded      OpenSSL 1.1.1l  24 Aug 2021
[ 4082s]   Cert File   /etc/pki/tls/cert.pem
[ 4082s]   Cert Dir    /etc/pki/tls/certs
[ 4082s] Tools         
[ 4082s]   Git         2.33.0
[ 4082s]   RVM         not installed
[ 4082s]   rbenv       not installed
[ 4082s]   chruby      not installed


I saw the toggles.我看到了开关。

I just saw this on a common Rails webapp, on bundle install after adding the Stripe gem. Same traceback, bundler v2.3.6. Not in GH Actions.
我刚刚在一个常见的 Rails webapp 上看到了这个，在添加 Stripe gem 之后的 bundle install 上。相同的回溯，bundler v2.3.6。不在 GH 行动中。
Apple Silicon / macOS 12.3; everything worked yesterday. Private project so I won't just paste the error report, but I'll grab anything specific out of it you want.
苹果硅 / macOS 12.3；昨天一切正常。私人项目，所以我不会只是粘贴错误报告，而是会从中获取您想要的任何特定内容。
Update - bundle clean didn't work to fix it, but rvm gemset empty and then a fresh bundle install worked.
更新 - bundle clean 无法修复它，但 rvm gemset 为空，然后新的 bundle install 工作。


# coding: utf-8

# During build, the Gemfile is temporarily moved and we must manually define the project root
if ENV['MSF_ROOT']
  lib = File.realpath(File.expand_path('lib', ENV['MSF_ROOT']))
else
  # have to use realpath as metasploit-framework is often loaded through a symlink and tools like Coverage and debuggers
  # require realpaths.
  lib = File.realpath(File.expand_path('../lib', __FILE__))
end

$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'metasploit/framework/version'
require 'metasploit/framework/rails_version_constraint'
require 'msf/util/helper'

Gem::Specification.new do |spec|
  spec.name          = 'metasploit-framework'
  spec.version       = Metasploit::Framework::GEM_VERSION
  spec.authors       = ['Metasploit Hackers']
  spec.email         = ['msfdev@metasploit.com']
  spec.summary       = 'metasploit-framework'
  spec.description   = 'metasploit-framework'
  spec.homepage      = 'https://www.metasploit.com'
  spec.license       = 'BSD-3-clause'

  # only do a git ls-files if the .git folder exists and we have a git binary in PATH
  if File.directory?(File.join(File.dirname(__FILE__), ".git")) && Msf::Util::Helper.which("git")
    spec.files         = `git ls-files`.split($/).reject { |file|
      file =~ /^external|^docs/
    }
  end
  spec.bindir = '.'
  if ENV['CREATE_BINSTUBS']
    spec.executables   = [
      'msfconsole',
      'msfd',
      'msfrpc',
      'msfrpcd',                                                                  'msfvenom'
    ]
  end
  spec.test_files    = spec.files.grep(%r{^spec/})
  spec.require_paths = ["lib"]

  spec.required_ruby_version = '>= 2.6'

  # Database support
  spec.add_runtime_dependency 'activerecord', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
  # Need 3+ for ActiveSupport::Concern
  spec.add_runtime_dependency 'activesupport', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
  # Needed for config.action_view for view plugin compatibility for Pro
  spec.add_runtime_dependency 'actionpack', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
  # Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
  spec.add_runtime_dependency 'bcrypt'                                        # Needed for Javascript obfuscation 困惑, 昏迷
  spec.add_runtime_dependency 'jsobfu'
  # Needed for some admin modules (scrutinizer_add_user.rb)
  spec.add_runtime_dependency 'json'
  # Metasm compiler/decompiler/assembler
  spec.add_runtime_dependency 'metasm'
  # Metasploit::Concern hooks
  spec.add_runtime_dependency 'metasploit-concern'
  # Metasploit::Credential database models
  spec.add_runtime_dependency 'metasploit-credential'
  # Database models shared between framework and Pro.
  spec.add_runtime_dependency 'metasploit_data_models'
  # Things that would normally be part of the database model, but which       # are needed when there's no database
  spec.add_runtime_dependency 'metasploit-model'
  # Needed for Meterpreter
  spec.add_runtime_dependency 'metasploit-payloads', '2.0.77'
  # Needed for the next-generation POSIX Meterpreter
  spec.add_runtime_dependency 'metasploit_payloads-mettle', '1.0.18'
  # Needed by msfgui and other rpc components
  spec.add_runtime_dependency 'msgpack'
  # get list of network interfaces, like eth* from OS.
  spec.add_runtime_dependency 'network_interface'
  # NTLM authentication
  spec.add_runtime_dependency 'rubyntlm'
  # Needed by anemone crawler
  spec.add_runtime_dependency 'nokogiri'
  # Needed by db.rb and Msf::Exploit::Capture
  spec.add_runtime_dependency 'packetfu'
  # For sniffer and raw socket modules
  spec.add_runtime_dependency 'pcaprub'
  # Used by the Metasploit data model, etc.
  # bound to 0.2x for Activerecord 4.2.8 deprecation warnings:
  # https://github.com/ged/ruby-pg/commit/c90ac644e861857ae75638eb6954b1cb49617090
  spec.add_runtime_dependency 'pg'
  # Run initializers for metasploit-concern, metasploit-credential, metasploit_data_models Rails::Engines
  spec.add_runtime_dependency 'railties'
  # required for OS fingerprinting
  spec.add_runtime_dependency 'recog'
  # required for bitlocker fvek extraction
  spec.add_runtime_dependency 'openssl-ccm'
  # Needed for documentation generation
  spec.add_runtime_dependency 'octokit'
  spec.add_runtime_dependency 'redcarpet'
  # Needed for Microsoft patch finding tool (msu_finder)
  spec.add_runtime_dependency 'patch_finder'
  # Required for Metasploit Web Services
  spec.add_runtime_dependency 'puma'
  spec.add_runtime_dependency 'thin'
  spec.add_runtime_dependency 'sinatra'
  spec.add_runtime_dependency 'warden'
  spec.add_runtime_dependency 'swagger-blocks'
  # Required for JSON-RPC client
  spec.add_runtime_dependency 'em-http-request'
  # TimeZone info
  spec.add_runtime_dependency 'tzinfo-data'
  # Gem for dealing with SSHKeys
  spec.add_runtime_dependency 'sshkey'
  # Library for interpreting Windows error codes and strings
  spec.add_runtime_dependency 'windows_error'
  # This used to be depended on by nokogiri, depended on by wmap              if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.0')
    spec.add_runtime_dependency 'xmlrpc'
  end
  # Gem for handling Cookies
  spec.add_runtime_dependency 'http-cookie'                                    # Needed for some modules (polkit_auth_bypass.rb)
  spec.add_runtime_dependency 'unix-crypt'                                  
  #
  # File Parsing Libraries                                                    #                                                                           # Needed by auxiliary/gather/http_pdf_authors module                        spec.add_runtime_dependency 'pdf-reader'
  spec.add_runtime_dependency 'ruby-macho'                                    # Needed for mongodb/bson
  spec.add_runtime_dependency 'bson'

  #
  # Protocol Libraries                                                        #                                                                           spec.add_runtime_dependency 'dnsruby'
  spec.add_runtime_dependency 'mqtt'                                          spec.add_runtime_dependency 'net-ssh'
  spec.add_runtime_dependency 'ed25519' # Adds ed25519 keys for net-ssh       spec.add_runtime_dependency 'bcrypt_pbkdf'
  spec.add_runtime_dependency 'ruby_smb', '~> 3.0'                            spec.add_runtime_dependency 'net-ldap'
  spec.add_runtime_dependency 'winrm'
  spec.add_runtime_dependency 'net-smtp'                                                                                                                  #                                                                           # REX Libraries                                                             #                                                                           # Core of the Ruby Exploitation Library                                     spec.add_runtime_dependency 'rex-core'                                      # Text manipulation library for things like generating random string        spec.add_runtime_dependency 'rex-text'                                      # Library for Generating Randomized strings valid as Identifiers such as variable names                                                                 spec.add_runtime_dependency 'rex-random_identifier'                         # library for creating Powershell scripts for exploitation purposes         spec.add_runtime_dependency 'rex-powershell'                                # Library for processing and creating Zip compatbile archives               spec.add_runtime_dependency 'rex-zip'                                       # Library for parsing offline Windows Registry files                        spec.add_runtime_dependency 'rex-registry'                                  # Library for parsing Java serialized streams                               spec.add_runtime_dependency 'rex-java'                                      # Library for C-style structs                                               spec.add_runtime_dependency 'rex-struct2'                                   # Library which contains architecture specific information such as registers, opcodes,                                                                  # and stack manipulation routines.                                          spec.add_runtime_dependency 'rex-arch'                                      # Library for working with OLE.                                             spec.add_runtime_dependency 'rex-ole'                                       # Library for creating and/or parsing MIME messages.                        spec.add_runtime_dependency 'rex-mime'                                      # Library for Dynamic Multi-byte x86 NOP generation                         spec.add_runtime_dependency 'rex-nop'                                       # Library for parsing and manipulating executable binaries                  spec.add_runtime_dependency 'rex-bin_tools'                                 # Rex Socket Abstraction Layer                                              spec.add_runtime_dependency 'rex-socket'                                    # Library for scanning a server's SSL/TLS capabilities                      spec.add_runtime_dependency 'rex-sslscan'                                   # Library and tool for finding ROP gadgets in a supplied binary             spec.add_runtime_dependency 'rex-rop_builder'                               # Library for polymorphic encoders; used for payload encoding               spec.add_runtime_dependency 'rex-encoder'                                   # Library for exploit development helpers                                   spec.add_runtime_dependency 'rex-exploitation'                              # Command line editing, history, and tab completion in msfconsole           spec.add_runtime_dependency 'rb-readline'
  # Needed by some modules                                                    spec.add_runtime_dependency 'rubyzip'
  # Needed for some post modules                                              spec.add_runtime_dependency 'sqlite3'
  # required for Time::TZInfo in ActiveSupport                                spec.add_runtime_dependency 'tzinfo'
  # Needed so that disk size output isn't horrible                            spec.add_runtime_dependency 'filesize'
  # Needed for openvas plugin                                                 spec.add_runtime_dependency 'openvas-omp'                                   # Needed by metasploit nessus bridge
  spec.add_runtime_dependency 'nessus_rest'                                   # Nexpose Gem
  spec.add_runtime_dependency 'nexpose'                                       # Needed for NDMP sockets
  spec.add_runtime_dependency 'xdr'                                           # Needed for ::Msf...CertProvider
  spec.add_runtime_dependency 'faker'                                         # Pinned as a dependency of i18n to the last working version
  spec.add_runtime_dependency 'concurrent-ruby','1.0.5'                       # SSH server library with ed25519
  spec.add_runtime_dependency 'hrr_rb_ssh-ed25519'                            # Needed for irb internal command
  spec.add_runtime_dependency 'irb'                                           # Lock reline version until Fiddle concerns are addressed
  spec.add_runtime_dependency 'reline', '0.2.5'                                                                                                           # AWS enumeration modules                                                   spec.add_runtime_dependency 'aws-sdk-s3'
  spec.add_runtime_dependency 'aws-sdk-ec2'                                   spec.add_runtime_dependency 'aws-sdk-iam'
                                                                              # Needed for WebSocket Support
  spec.add_runtime_dependency 'faye-websocket'                                spec.add_runtime_dependency 'eventmachine'
                                                                              spec.add_runtime_dependency 'faraday'                                     
  # Required for windows terminal colors as of Ruby 3.0                       spec.add_runtime_dependency 'win32api'
                                                                              spec.add_runtime_dependency 'zeitwerk'
end                                                                         ```
                                                                            --- TEMPLATE END ----------------------------------------------------------------                                                                       
Unfortunately, an unexpected error occurred, and Bundler cannot continue.   
First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=could+not+find+a+temporary+directory&type=Issues
                                                                            If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there




https://github.com/rubygems/rubygems/blob/2a79490729d6f81d3fe6dc4bf6cddcaa2d4f203b/bundler/lib/bundler/installer/parallel_installer.rb#L124
warning << "* #{unmet_spec_dependency}, depended upon #{spec.full_name}, unsatisfied by #{@specs.find {|s| s.name == unmet_spec_dependency.name && !unmet_spec_dependency.matches_spec?(s.spec) }.full_name}"



logging output to /var/tmp/build-root/22.03-riscv64/.build.log...
[    0s] Memory limit set to 2702036KB
[    0s] Using BUILD_ROOT=/var/tmp/build-root/22.03-riscv64
[    0s] Using BUILD_ARCH=riscv64



https://en.opensuse.org/Portal:How_to_participate
 Main site
 Software
 Wiki
 Documentation
 Forum
DEVELOPMENT
 Build service
 Bugzilla
 GitHub
 openQA
 Weblate
 Kernel
INFORMATION
 News
 Events
 Planet
 Shop
 Status
 Survey
COMMUNITY
 IRC channels
 Mail lists
 Facebook group
 Telegram group
 Reddit
SOCIAL MEDIA
 Mastodon
 Telegram
 Facebook
 Twitter
 YouTube
OTHER
 Packman
 Kubic
 Guide (unofficial)
 Mirrors
 Lizards

 https://download.opensuse.org/repositories/OBS:/Server:/2.10/SLE_12_SP4/src/
 OSS--The main repository: open source software only.


  rpm2cpio *.rpm | cpio -div

  specific 具体, 特定, 个别, 明确的


  ls -ial rpmbuild/BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0/gems/

 actioncable-5.2.7.1
 actionmailer-5.2.7.1
 actionpack-5.2.7.1
 actionview-5.2.7.1
 activejob-5.2.7.1
 activemodel-5.2.7.1
 activemodel-serializers-xml-1.0.2
 activerecord-5.2.7.1
 activestorage-5.2.7.1
 activesupport-5.2.7.1
 acts_as_list-1.0.4
 acts_as_tree-2.9.1
 addressable-2.8.0
 airbrake-13.0.0
 airbrake-ruby-6.0.2
 ajax-datatables-rails-1.3.1
 amq-protocol-2.3.2
 ansi-1.5.0
 arel-9.0.0
 ast-2.4.2
 autoprefixer-rails-10.4.2.0
 bcrypt-3.1.17
 bootstrap-5.1.3
 builder-3.2.4
 bullet-7.0.1
 bunny-2.19.0
 bunny-mock-1.7.0
 byebug-11.1.3
 capybara-3.36.0
 capybara_minitest_spec-1.0.7
 childprocess-4.1.0
 chunky_png-1.4.0
 clockwork-3.0.0
 cocoon-1.2.15
 codecov-0.6.0
 codemirror-rails-5.16.0
 coderay-1.1.3
 coffee-rails-5.0.0
 coffee-script-2.4.1
 coffee-script-source-1.12.2
 colorize-0.8.1
 concurrent-ruby-1.1.9
 concurrent-ruby-ext-1.1.9
 coveralls-0.7.1
 crack-0.4.5
 crass-1.0.6
 cssmin-1.0.3
 daemons-1.4.1
 dalli-3.2.1
 data_migrate-8.0.0
 database_cleaner-2.0.1
 database_cleaner-active_record-2.0.1
 database_cleaner-core-2.0.1
 deep_cloneable-2.4.0
 delayed_job-4.1.10
 delayed_job_active_record-4.1.7
 diff-lcs-1.5.0
 docile-1.4.0
 domain_name-0.5.20190701
 erubi-1.10.0
 erubis-2.7.0
 escape_utils-1.2.1
 execjs-2.8.1
 experimental-influxdb-rails-1.0.0.beta5
 factory_bot-6.2.0
 factory_bot_rails-6.2.0
 faker-2.20.0
 feature-1.4.0
 ffi-1.15.5
 flot-rails-0.0.7
 font-awesome-sass-6.1.0
 globalid-1.0.0
 gssapi-1.3.1
 haml-5.2.2
 haml-rails-2.0.1
 haml_lint-0.40.0
 hashdiff-1.0.1
 html2haml-2.2.0
 http-accept-1.7.0
 http-cookie-1.0.4
 i18n-1.10.0
 influxdb-0.8.1
 innertube-1.1.0
 joiner-0.4.2
 jquery-datatables-1.10.20
 jquery-rails-4.4.0
 jquery-ui-rails-4.2.1
 kaminari-1.2.2
 kaminari-actionview-1.2.2
 kaminari-activerecord-1.2.2
 kaminari-core-1.2.2
 launchy-2.5.0
 lograge-0.11.2
 loofah-2.15.0
 mail-2.7.1
 marcel-1.0.2
 matrix-0.4.2
 method_source-1.0.0
 middleware-0.1.0
 mime-types-3.4.1
 mime-types-data-3.2022.0105
 mini_mime-1.1.2
 minitest-5.15.0
 minitest-ci-3.4.0
 minitest-fail-fast-0.1.0
 minitest-reporters-1.5.0
 mocha-1.13.0
 momentjs-rails-2.29.1.1
 mousetrap-rails-1.4.6
 multi_json-1.15.0
 mysql2-0.5.3
 netrc-0.11.0
 nio4r-2.5.8
 parallel-1.21.0
 parser-3.1.1.0
 peek-1.1.0
 peek-dalli-1.2.0
 peek-host-1.0.0
 peek-mysql2-1.2.0
 pkg-config-1.4.7
 popper_js-2.9.3
 power_assert-2.0.1
 pry-0.13.1
 pry-byebug-3.9.0
 psych-4.0.3
 public_suffix-4.0.6
puma-4.3.11
pundit-2.2.0
 rack-2.2.3
 rack-test-1.1.0
rails-5.2.7.1
rails-controller-testing-1.0.5
 rails-dom-testing-2.0.3
 rails-html-sanitizer-1.4.2
rails-timeago-2.20.0
rails_tokeninput-1.7.0
 railties-5.2.7.1
 rainbow-3.1.1
 rake-13.0.6
rantly-2.0.0
 rbtree-0.4.5
 rbtree3-0.7.0
rdoc-6.4.0
redcarpet-3.5.1
 regexp_parser-2.2.1
 request_store-1.5.1
responders-3.0.1
 rest-client-2.1.0
 rexml-3.2.5
riddle-2.4.3
rspec-3.11.0
rspec-core-3.11.0
rspec-expectations-3.11.0
rspec-mocks-3.11.0
rspec-rails-5.1.1
rspec-support-3.11.0
rspec_junit_formatter-0.5.1
rubocop-1.26.0
rubocop-ast-1.16.0
rubocop-performance-1.13.3
rubocop-rails-2.14.2
rubocop-rspec-2.9.0
ruby-ldap-0.9.20
ruby-progressbar-1.11.0
ruby_parser-3.18.1
rubyzip-2.3.2
sanitize-6.0.0
sassc-2.4.0
sassc-rails-2.1.2
selenium-webdriver-4.1.0
set-1.0.2
sexp_processor-4.16.0
shoulda-matchers-4.5.1
simplecov-0.21.2
simplecov-html-0.12.3
simplecov_json_formatter-0.1.4
single_test-0.6.0
sorted_set-1.0.3
sprite-factory-1.7.1
sprockets-4.0.3
sprockets-rails-3.4.2
sync-0.5.0
sysexits-1.2.0
temple-0.8.2
term-ansicolor-1.7.1
test-unit-3.5.3
thinking-sphinx-5.4.0
thor-1.2.1
thread_safe-0.3.6
tilt-2.0.10
timecop-0.9.5
tins-1.31.0
tzinfo-1.2.9
uglifier-4.2.0
unf-0.1.4
unf_ext-0.0.8.1
unicode-display_width-2.1.0
uniform_notifier-1.14.2
vcr-6.1.0
voight_kampff-1.1.4
webmock-3.14.0
webrick-1.7.0
websocket-driver-0.7.5
websocket-extensions-0.1.5
xmlhash-1.3.8
xmlrpc-0.3.2
xpath-3.2.0
yajl-ruby-1.4.2
zeitwerk-2.5.4


ls  /usr/share/ruby/
English.rb       fiddle.rb       open-uri.rb        ripper
abbrev.rb        fileutils.rb    open3.rb           ripper.rb
base64.rb        find.rb         openssl            securerandom.rb
benchmark        forwardable     openssl.rb         set
benchmark.rb     forwardable.rb  optionparser.rb    set.rb
bigdecimal.rb    getoptlong.rb   optparse           shellwords.rb
bundler.rb       io              optparse.rb        singleton.rb
cgi              ipaddr.rb       ostruct.rb         socket.rb
cgi.rb           irb             pathname.rb        syslog
coverage.rb      irb.rb          pp.rb              tempfile.rb
csv              json            prettyprint.rb     time.rb
csv.rb           json.rb         prime.rb           timeout.rb
date.rb          kconv.rb        pstore.rb          tmpdir.rb
debug.rb         logger          psych              tracer.rb
delegate.rb      logger.rb       psych.rb           tsort.rb
did_you_mean.rb  matrix          racc               un.rb
digest           matrix.rb       racc.rb            unicode_normalize
digest.rb        mkmf.rb         readline.rb        uri
drb              monitor.rb      reline             uri.rb
drb.rb           mutex_m.rb      reline.rb          weakref.rb
erb.rb           net             resolv-replace.rb  yaml
expect.rb        objspace.rb     resolv.rb          yaml.rb
fiddle           observer.rb     rinda

ls /usr/share/gems/gems/
bundler-2.2.33  gem2rpm-1.0.1     irb-1.3.5   openssl-2.2.1  rdoc-6.3.3
erb-2.2.0       io-console-0.5.7  json-2.5.1  psych-3.3.2
ls /usr/share/gems/gems/bundler-2.2.33/
LICENSE.md  exe  lib
ls /usr/share/gems/gems/bundler-2.2.33/exe/
bundle  bundler

gem /home/abuild/rpmbuild/BUILD/Gemfile
`did_you_mean' was not loaded.
ERROR:  While executing gem ... (Gem::CommandLineError)
    Unknown command /home/abuild/rpmbuild/build/gemfile
        /usr/share/rubygems/rubygems/command_manager.rb:191:in `find_command'
        /usr/share/rubygems/rubygems/command_manager.rb:176:in `process_args'
        /usr/share/rubygems/rubygems/command_manager.rb:147:in `run'
        /usr/share/rubygems/rubygems/gem_runner.rb:53:in `run'
        /usr/bin/gem:21:in `<main>'



Running gem update --system should get both installed on your system, and then
bundle update --bundler should change your lockfile to use the new version of
bundler that was just installed.


 cat /usr/share/rubygems/rubygems/
available_set.rb                errors.rb                       optparse/                       requirement.rb                  text.rb
basic_specification.rb          exceptions.rb                   optparse.rb                     resolver/                       tsort/
bundler_version_finder.rb       ext/                            package/                        resolver.rb                     tsort.rb
command.rb                      ext.rb                          package.rb                      s3_uri_signer.rb                uninstaller.rb
command_manager.rb              gem_runner.rb                   package_task.rb                 safe_yaml.rb                    uri.rb
commands/                       gemcutter_utilities.rb          path_support.rb                 security/                       uri_formatter.rb
compatibility.rb                indexer.rb                      platform.rb                     security.rb                     user_interaction.rb
config_file.rb                  install_default_message.rb      psych_additions.rb              security_option.rb              util/
core_ext/                       install_message.rb              psych_tree.rb                   server.rb                       util.rb
defaults/                       install_update_options.rb       query_utils.rb                  source/                         validator.rb
defaults.rb                     installer.rb                    rdoc.rb                         source.rb                       version.rb
dependency.rb                   installer_uninstaller_utils.rb  remote_fetcher.rb               source_list.rb                  version_option.rb
dependency_installer.rb         local_remote_options.rb         request/                        spec_fetcher.rb
dependency_list.rb              mock_gem_ui.rb                  request.rb                      specification.rb
deprecate.rb                    name_tuple.rb                   request_set/                    specification_policy.rb
doctor.rb                       openssl.rb                      request_set.rb                  stub_specification.rb


ls  /usr/share/rubygems/rubygems/commands
build_command.rb     dependency_command.rb      info_command.rb     open_command.rb      query_command.rb   signin_command.rb         uninstall_command.rb
cert_command.rb      environment_command.rb     install_command.rb  outdated_command.rb  rdoc_command.rb    signout_command.rb        unpack_command.rb
check_command.rb     fetch_command.rb           list_command.rb     owner_command.rb     search_command.rb  sources_command.rb        update_command.rb
cleanup_command.rb   generate_index_command.rb  lock_command.rb     pristine_command.rb  server_command.rb  specification_command.rb  which_command.rb
contents_command.rb  help_command.rb            mirror_command.rb   push_command.rb      setup_command.rb   stale_command.rb          yank_command.rb

ls  /usr/share/rubygems/rubygems/core_ext/
kernel_gem.rb  kernel_require.rb  kernel_warn.rb  tcpsocket_init.rb

ls  /usr/share/rubygems/rubygems/defaults/
operating_system.rb

 ls  /usr/share/rubygems/rubygems/ext/
build_error.rb  builder.rb  cmake_builder.rb  configure_builder.rb  ext_conf_builder.rb  rake_builder.rb

ls  /usr/share/rubygems/rubygems/optparse/lib/
optionparser.rb  optparse  optparse.rb
ls  /usr/share/rubygems/rubygems/optparse/lib/optparse/
ac.rb  date.rb  kwargs.rb  shellwords.rb  time.rb  uri.rb  version.rb

ls  /usr/share/rubygems/rubygems/package/
digest_io.rb  file_source.rb  io_source.rb  old.rb  source.rb  tar_header.rb  tar_reader  tar_reader.rb  tar_writer.rb
ls  /usr/share/rubygems/rubygems/package/tar_reader/
entry.rb

ls /usr/share/ruby/bundler/
ls: cannot access '/usr/share/ruby/bundler/': No such file or directory


https://github.dev/rubygems/rubygems/blob/master/bundler/lib/bundler/installer/parallel_installer.rb

ls rpmbuild/BUILD/vendor/cache/
actioncable-5.2.7.1.gem                      momentjs-rails-2.29.1.1.gem
actionmailer-5.2.7.1.gem                     mousetrap-rails-1.4.6.gem
actionpack-5.2.7.1.gem                       multi_json-1.15.0.gem
actionview-5.2.7.1.gem                       mysql2-0.5.3.gem
activejob-5.2.7.1.gem                        netrc-0.11.0.gem
activemodel-5.2.7.1.gem                      nio4r-2.5.8.gem
activemodel-serializers-xml-1.0.2.gem        nokogiri-1.13.4-aarch64-linux.gem
activerecord-5.2.7.1.gem                     nokogiri-1.13.4-x86_64-linux.gem
activestorage-5.2.7.1.gem                    parallel-1.21.0.gem
activesupport-5.2.7.1.gem                    parser-3.1.1.0.gem
acts_as_list-1.0.4.gem                       peek-1.1.0.gem
acts_as_tree-2.9.1.gem                       peek-dalli-1.2.0.gem
addressable-2.8.0.gem                        peek-host-1.0.0.gem
airbrake-13.0.0.gem                          peek-mysql2-1.2.0.gem
airbrake-ruby-6.0.2.gem                      pkg-config-1.4.7.gem
ajax-datatables-rails-1.3.1.gem              popper_js-2.9.3.gem
amq-protocol-2.3.2.gem                       power_assert-2.0.1.gem
ansi-1.5.0.gem                               pry-0.13.1.gem
arel-9.0.0.gem                               pry-0.14.1.gem
ast-2.4.2.gem                                pry-byebug-3.8.0.gem
autoprefixer-rails-10.4.2.0.gem              pry-byebug-3.9.0.gem
bcrypt-3.1.17.gem                            psych-4.0.3.gem
bootstrap-5.1.3.gem                          public_suffix-4.0.6.gem
builder-3.2.4.gem                            puma-4.3.11.gem
bullet-7.0.1.gem                             pundit-2.2.0.gem
bunny-2.19.0.gem                             racc-1.6.0.gem
bunny-mock-1.7.0.gem                         rack-2.2.3.gem
byebug-11.1.3.gem                            rack-test-1.1.0.gem
capybara-3.36.0.gem                          rails-5.2.7.1.gem
capybara_minitest_spec-1.0.7.gem             rails-controller-testing-1.0.5.gem
childprocess-4.1.0.gem                       rails-dom-testing-2.0.3.gem
chunky_png-1.4.0.gem                         rails-html-sanitizer-1.4.2.gem
clockwork-3.0.0.gem                          rails-timeago-2.20.0.gem
cocoon-1.2.15.gem                            rails_tokeninput-1.7.0.gem
codecov-0.6.0.gem                            railties-5.2.7.1.gem
codemirror-rails-5.16.0.gem                  rainbow-3.1.1.gem
coderay-1.1.3.gem                            rake-13.0.6.gem
coffee-rails-5.0.0.gem                       rantly-2.0.0.gem
coffee-script-2.4.1.gem                      rbtree-0.4.5.gem
coffee-script-source-1.12.2.gem              rbtree3-0.7.0.gem
colorize-0.8.1.gem                           rdoc-6.4.0.gem
concurrent-ruby-1.1.9.gem                    redcarpet-3.5.1.gem
concurrent-ruby-ext-1.1.9.gem                regexp_parser-2.2.1.gem
coveralls-0.7.1.gem                          request_store-1.5.1.gem
crack-0.4.5.gem                              responders-3.0.1.gem
crass-1.0.6.gem                              rest-client-2.1.0.gem
cssmin-1.0.3.gem                             rexml-3.2.5.gem
daemons-1.4.1.gem                            riddle-2.4.3.gem
dalli-3.2.1.gem                              rspec-3.11.0.gem
data_migrate-8.0.0.gem                       rspec-core-3.11.0.gem
database_cleaner-2.0.1.gem                   rspec-expectations-3.11.0.gem
database_cleaner-active_record-2.0.1.gem     rspec-mocks-3.11.0.gem
database_cleaner-core-2.0.1.gem              rspec-rails-5.1.1.gem
deep_cloneable-2.4.0.gem                     rspec-support-3.11.0.gem
delayed_job-4.1.10.gem                       rspec_junit_formatter-0.5.1.gem
delayed_job_active_record-4.1.7.gem          rubocop-1.26.0.gem
diff-lcs-1.5.0.gem                           rubocop-ast-1.16.0.gem
docile-1.4.0.gem                             rubocop-performance-1.13.3.gem
domain_name-0.5.20190701.gem                 rubocop-rails-2.14.2.gem
erubi-1.10.0.gem                             rubocop-rspec-2.9.0.gem
erubis-2.7.0.gem                             ruby-ldap-0.9.20.gem
escape_utils-1.2.1.gem                       ruby-progressbar-1.11.0.gem
execjs-2.8.1.gem                             ruby_parser-3.18.1.gem
experimental-influxdb-rails-1.0.0.beta5.gem  rubyzip-2.3.2.gem
factory_bot-6.2.0.gem                        sanitize-6.0.0.gem
factory_bot-6.2.1.gem                        sassc-2.4.0.gem
factory_bot_rails-6.2.0.gem                  sassc-rails-2.1.2.gem
faker-2.20.0.gem                             selenium-webdriver-4.1.0.gem
feature-1.4.0.gem                            set-1.0.2.gem
ffi-1.15.5.gem                               sexp_processor-4.16.0.gem
flot-rails-0.0.7.gem                         shoulda-matchers-4.5.1.gem
font-awesome-sass-6.1.0.gem                  simplecov-0.21.2.gem
globalid-1.0.0.gem                           simplecov-html-0.12.3.gem
gssapi-1.3.1.gem                             simplecov_json_formatter-0.1.4.gem
haml-5.2.2.gem                               single_test-0.6.0.gem
haml-rails-2.0.1.gem                         sorted_set-1.0.3.gem
haml_lint-0.40.0.gem                         sprite-factory-1.7.1.gem
hashdiff-1.0.1.gem                           sprockets-4.0.3.gem
html2haml-2.2.0.gem                          sprockets-rails-3.4.2.gem
http-accept-1.7.0.gem                        sync-0.5.0.gem
http-cookie-1.0.4.gem                        sysexits-1.2.0.gem
i18n-1.10.0.gem                              temple-0.8.2.gem
influxdb-0.8.1.gem                           term-ansicolor-1.7.1.gem
innertube-1.1.0.gem                          test-unit-3.5.3.gem
joiner-0.4.2.gem                             thinking-sphinx-5.4.0.gem
jquery-datatables-1.10.20.gem                thor-1.2.1.gem
jquery-rails-4.4.0.gem                       thread_safe-0.3.6.gem
jquery-ui-rails-4.2.1.gem                    tilt-2.0.10.gem
kaminari-1.2.2.gem                           timecop-0.9.5.gem
kaminari-actionview-1.2.2.gem                tins-1.31.0.gem
kaminari-activerecord-1.2.2.gem              tzinfo-1.2.9.gem
kaminari-core-1.2.2.gem                      uglifier-4.2.0.gem
launchy-2.5.0.gem                            unf-0.1.4.gem
lograge-0.11.2.gem                           unf_ext-0.0.8.1.gem
loofah-2.15.0.gem                            unicode-display_width-2.1.0.gem
mail-2.7.1.gem                               uniform_notifier-1.14.2.gem
marcel-1.0.2.gem                             vcr-6.1.0.gem
matrix-0.4.2.gem                             voight_kampff-1.1.4.gem
method_source-1.0.0.gem                      webmock-3.14.0.gem
middleware-0.1.0.gem                         webrick-1.7.0.gem
mime-types-3.4.1.gem                         websocket-driver-0.7.5.gem
mime-types-data-3.2022.0105.gem              websocket-extensions-0.1.5.gem
mini_mime-1.1.2.gem                          xmlhash-1.3.8.gem
minitest-5.15.0.gem                          xmlrpc-0.3.2.gem
minitest-ci-3.4.0.gem                        xpath-3.2.0.gem
minitest-fail-fast-0.1.0.gem                 yajl-ruby-1.4.2.gem
minitest-reporters-1.5.0.gem                 zeitwerk-2.5.4.gem
mocha-1.13.0.gem



-------
sed --help
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space 抑制图案空间的自动打印
      --debug
                 annotate program execution 注释程序执行
  -e script, --expression=script
                 add the script to the commands to be executed 将脚本添加到要执行的命令中
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied) 就地编辑文件（如果提供了 SUFFIX，则进行备份）
  -c, --copy
                 use copy instead of rename when shuffling files in -i mode 在 -i 模式下改组文件时使用复制而不是重命名
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command 为“l”命令指定所需的换行长度
  --posix 
                 disable all GNU extensions. 禁用所有 GNU 扩展。
  -E, -r, --regexp-extended
                 use extended regular expressions in the script 在脚本中使用扩展正则表达式
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.

 -e 或 --expression=：表示用指定命令或脚本来处理输入的文本文件
 -f 或 --file=：表示用指定的脚本文件来处理输入的文本文件
 -h 或 --help:显示帮助。
 -n、--quiet 或silent：表示仅显示处理后的结果。
 -i.bak ：直接编辑文本文件
 -r，-E 使用扩展正则表达式
 -s 将多个文件视为独立文件，而不是单个连续的长文件流
 
a：增加，在当前行下面增加一行指定内容
c：替换，将选定行替换为指定内容
d：删除,删除选定的行。
i：插入，在选定行上面插入一行指定内容
p：打印，如果同时指定行，表示打印指定行;如果不指定行，则表示打印出所有内容；如果有非打印字符，则以ASCII码输出。其通常与"-n"选项一起使用。
s：替换，替换指定字符
y：字符转换。

H:复制到剪切板
g、G：将剪切板中的数据覆盖/追加至指定行
w：保存为文件
r：读取指定文件
a：增加指定内容。具体操作方法如下所示
I，i 忽略大小写

https://rubygems.org/gems/bundler/versions/2.2.33

rpm --eval %{buildroot}
/home/abuild/rpmbuild/BUILDROOT/%{NAME}-%{VERSION}-%{RELEASE}.riscv64


/home/abuild/rpmbuild/BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0/gems/sassc-2.4.0/lib/sassc

 
bundler/lib/bundler/installer/parallel_installer.rb

          warning << "* #{unmet_spec_dependency}, depended upon #{spec.full_name}, unsatisfied by #{@specs.find {|s| s.name == unmet_spec_dependency.name && !unmet_spec_dependency.matches_spec?(s.spec) }.full_name}"
          existing_spec_with_violation = @specs.find {|s| s.name == unmet_spec_dependency.name && !unmet_spec_dependency.matches_spec?(s.spec) }

          warning_message = "* #{unmet_spec_dependency}, depended upon #{spec.full_name}"
          warning_message += existing_spec_with_violation ? ", unsatisfied by #{existing_spec_with_violation.full_name}" : ", #{unmet_spec_dependency.name} missing in lockfile"

          warning << warning_message

          https://blog.csdn.net/zx77588023/article/details/118995131


gem list --local
`did_you_mean' was not loaded.

*** LOCAL GEMS ***

abbrev (default: 0.1.0)
base64 (default: 0.1.0)
benchmark (default: 0.1.1)
bundler (2.2.33, default: 2.2.32)
cgi (default: 0.2.1)
csv (default: 3.1.9)
date (default: 3.1.3)
dbm (default: 1.1.0)
debug (default: 0.2.1)
delegate (default: 0.2.0)
did_you_mean (default: 1.5.0)
digest (default: 3.0.0)
drb (default: 2.0.5)
english (default: 0.7.1)
erb (default: 2.2.0)
etc (default: 1.3.0)
fcntl (default: 1.0.1)
fiddle (default: 1.0.8)
fileutils (default: 1.5.0)
find (default: 0.1.0)
forwardable (default: 1.3.2)
gdbm (default: 2.1.0)
gem2rpm (1.0.1)
getoptlong (default: 0.1.1)
io-console (0.5.7)
io-nonblock (default: 0.1.0)
io-wait (default: 0.2.0)
ipaddr (default: 1.2.2)
irb (default: 1.3.5)
json (2.5.1)
logger (default: 1.4.3)
matrix (default: 0.3.1)
mutex_m (default: 0.1.1)
net-ftp (default: 0.1.2)
net-http (default: 0.1.1)
net-imap (default: 0.1.1)
net-pop (default: 0.1.1)
net-protocol (default: 0.1.1)
net-smtp (default: 0.2.1)
nkf (default: 0.1.0)
observer (default: 0.1.1)
open-uri (default: 0.1.0)
open3 (default: 0.1.1)
openssl (2.2.1)
optparse (default: 0.1.1)
ostruct (default: 0.3.1)
pathname (default: 0.1.0)
pp (default: 0.2.1)
prettyprint (default: 0.1.1)
prime (default: 0.1.2)
pstore (default: 0.1.1)
psych (3.3.2)
racc (default: 1.5.2)
rdoc (6.3.3)
readline (default: 0.0.2)
readline-ext (default: 0.1.1)
reline (default: 0.2.5)
resolv (default: 0.2.1)
resolv-replace (default: 0.1.0)
rinda (default: 0.1.1)
securerandom (default: 0.1.0)
set (default: 1.0.1)
shellwords (default: 0.1.0)
singleton (default: 0.1.1)
stringio (default: 3.0.1)
strscan (default: 3.0.1)
syslog (default: 0.1.0)
tempfile (default: 0.1.1)
time (default: 0.1.0)
timeout (default: 0.1.1)
tmpdir (default: 0.1.2)
tracer (default: 0.1.1)
tsort (default: 0.1.0)
un (default: 0.1.0)
uri (default: 0.10.1)
weakref (default: 0.1.1)
yaml (default: 0.1.1)
zlib (default: 2.0.0)


sed -i 's/^/#&/N;18'  obs-bundled-gems.spec

sed -i 's/^/assign&/g'  file.txt
sed -i 's/$/&;/g'  file_name.txt


sed -i '/^%global/#%global' obs-bundled-gems.spec


BUNDLE(1)                                                            BUNDLE(1)

NAME
       bundle - Ruby Dependency Management

SYNOPSIS
       bundle COMMAND [--no-color] [--verbose] [ARGS]

DESCRIPTION
       Bundler  manages  an application's dependencies through its entire life
       across many machines systematically and repeatably.

       See the bundler website https://bundler.io for information  on  getting
       started, and Gemfile(5) for more information on the Gemfile format.

OPTIONS
       --no-color
              Print all output without color

       --retry, -r
              Specify the number of times you wish to attempt network commands

       --verbose, -V
              Print out additional logging information

BUNDLE COMMANDS
       We divide bundle subcommands into primary commands and utilities:

PRIMARY COMMANDS
       bundle install(1) bundle-install.1.html
              Install the gems specified by the Gemfile or Gemfile.lock

       bundle update(1) bundle-update.1.html
              Update dependencies to their latest versions

       bundle package(1) bundle-package.1.html
              Package  the  .gem  files  required by your application into the
              vendor/cache directory

       bundle exec(1) bundle-exec.1.html
       bundle config(1) bundle-config.1.html
              Specify and read configuration options for Bundler

       bundle help(1)
              Display detailed help for each subcommand

UTILITIES
       bundle add(1) bundle-add.1.html
              Add the named gem to the Gemfile and run bundle install

       bundle binstubs(1) bundle-binstubs.1.html
              Generate binstubs for executables in a gem

       bundle check(1) bundle-check.1.html
              Determine whether the requirements for your application are  in-
              stalled and available to Bundler

       bundle show(1) bundle-show.1.html
              Show the source location of a particular gem in the bundle

       bundle outdated(1) bundle-outdated.1.html
              Show all of the outdated gems in the current bundle

       bundle console(1)
              Start an IRB session in the current bundle

       bundle open(1) bundle-open.1.html
              Open an installed gem in the editor

       bundle lock(1) bundle-lock.1.html
              Generate a lockfile for your dependencies

       bundle viz(1) bundle-viz.1.html
              Generate a visual representation of your dependencies

       bundle init(1) bundle-init.1.html
              Generate a simple Gemfile, placed in the current directory

       bundle gem(1) bundle-gem.1.html
              Create a simple gem, suitable for development with Bundler

       bundle platform(1) bundle-platform.1.html
              Display platform compatibility information

       bundle clean(1) bundle-clean.1.html
              Clean up unused gems in your Bundler directory

       bundle doctor(1) bundle-doctor.1.html
              Display warnings about common problems

       bundle remove(1) bundle-remove.1.html
              Removes gems from the Gemfile

PLUGINS
       When  running a command that isn't listed in PRIMARY COMMANDS or UTILI-
       TIES, Bundler will try  to  find  an  executable  on  your  path  named
       bundler-<command>  and  execute it, passing down any extra arguments to
       it.

OBSOLETE
       These commands are obsolete and should no longer be used:

       o   bundle cache(1)

       o   bundle show(1)

BUILDROOT/obs-bundled-gems-2.10.1-6.oe2.riscv64/usr/lib64/obs-api/ruby/3.0.0/specifications/xmlrpc-0.3.2.gemspec

gem update --system
Updating rubygems-update
Fetching rubygems-update-3.3.17.gem
Successfully installed rubygems-update-3.3.17
Parsing documentation for rubygems-update-3.3.17
Installing ri documentation for rubygems-update-3.3.17
Installing darkfish documentation for rubygems-update-3.3.17
Done installing documentation for rubygems-update after 588 seconds
Parsing documentation for rubygems-update-3.3.17
Done installing documentation for rubygems-update after 1 seconds
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ dir_chdir - /usr/share/gems/gems/rubygems-update-3.3.17
[root@openEuler-RISCV-rare obs-bundled-gems]# pwd
/home/admin/obs_build/obs-bundled-gems/obs-bundled-gems

mkdir -p /usr/share/gems/gems/rubygems-update-3.3.17



/usr/bin/ruby: No such file or directory -- setup.rb (LoadError)


gem install rubygems-update --source http://production.s3.rubygems.org/
update_rubygems

wget https://github.com/rubygems/rubygems/archive/refs/tags/v3.3.17.tar.gz
tar -xf  v3.3.17.tar.gz
ruby setup.rb


RubyGems installed the following executables:
        /usr/bin/gem
        /usr/bin/bundle
        /usr/bin/bundler

Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for Ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.



rpmbuild -ba obs-bundled-gems.spec
error: Failed build dependencies:
        cyrus-sasl-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        libxml2-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        libxslt-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        mysql-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        nodejs is needed by obs-bundled-gems-2.10.1-6.riscv64
        openldap-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        python3-devel is needed by obs-bundled-gems-2.10.1-6.riscv64
        ruby-common is needed by obs-bundled-gems-2.10.1-6.riscv64
        rubygem-bundler is needed by obs-bundled-gems-2.10.1-6.riscv64
yum install ---

ModuleNotFoundError: No module named 'dnf'

rpm -qa python3
python3-3.8.5-13.oe1.riscv64

rpm -ql python3-3.8.5-13.oe1.riscv64

 whereis python3
python3: 
/usr/bin/python3.8-config /usr/bin/python3.8 /usr/bin/python3 
/usr/bin/python3.8-riscv64-config 
/usr/lib/python3.8 
/usr/lib/python3.7 
/usr/lib64/python3.8 
/usr/lib64/python3.7 /usr/include/python3.8

mv /usr/lib/python3.7 /home/admin/python/
mv /usr/lib64/python3.7 /home/admin/pythonlib64


 rpm -q dnf python3-dnf python3 python3-rpm
dnf-4.2.15-8.oe1.noarch
python3-dnf-4.2.15-8.oe1.noarch
python3-3.8.5-13.oe1.riscv64
python3-rpm-4.15.1-13.riscv64


rpm --rebuilddb
rpm --verify --all


https://www.python.org/ftp/python/
https://repo.openeuler.org/openEuler-preview/RISC-V/everything/rpms/?C=M&O=D
http://119.3.219.20:82/openEuler:/Mainline:/RISC-V/standard_riscv64/riscv64/

ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 9 Apr 29 14:00 /usr/bin/python3 -> python3.8

ll /usr/bin/ | grep python
lrwxrwxrwx 1 root root       7 Nov  9  2020 python -> python2
lrwxrwxrwx 1 root root       9 Nov  9  2020 python2 -> python2.7
-rwxr-xr-x 1 root root    6.1K Nov  9  2020 python2.7
-rwxr-xr-x 1 root root    1.9K Nov  9  2020 python2.7-config
-rwxr-xr-x 1 root root    6.1K Nov  9  2020 python2.7-debug
-rwxr-xr-x 1 root root    1.9K Nov  9  2020 python2.7-debug-config
lrwxrwxrwx 1 root root      16 Nov  9  2020 python2-config -> python2.7-config
lrwxrwxrwx 1 root root      15 Nov  9  2020 python2-debug -> python2.7-debug
lrwxrwxrwx 1 root root      22 Nov  9  2020 python2-debug-config -> python2.7-debug-config
lrwxrwxrwx 1 root root       9 Apr 29 14:00 python3 -> python3.8
-rwxr-xr-x 1 root root    6.1K Apr 29 14:09 python3.8
-rwxr-xr-x 1 root root     171 Apr 29 14:00 python3.8-config
-rwxr-xr-x 1 root root    3.1K Apr 29 13:31 python3.8-riscv64-config
lrwxrwxrwx 1 root root      16 Apr 29 14:00 python3-config -> python3.8-config
lrwxrwxrwx 1 root root      14 Nov  9  2020 python-config -> python2-config
lrwxrwxrwx 1 root root      13 Nov  9  2020 python-debug -> python2-debug
lrwxrwxrwx 1 root root      20 Nov  9  2020 python-debug-config -> python2-debug-config

ll /usr/bin/ | grep pip
-rwxr-xr-x 1 root root     648 Apr 29 13:02 pip
lrwxrwxrwx 1 root root       9 Apr 29 13:02 pip-3 -> ./pip-3.7
-rwxr-xr-x 1 root root     648 Apr 29 13:02 pip3
lrwxrwxrwx 1 root root       8 Apr 29 13:02 pip-3.7 -> ./pip3.7
-rwxr-xr-x 1 root root     648 Apr 29 13:02 pip3.7


ls /usr/bin/ |grep python
python
python2
python2.7
python2.7-config
python2.7-debug
python2.7-debug-config
python2-config
python2-debug
python2-debug-config
python3
python3.8
python3.8-config
python3.8-riscv64-config
python3-config
python-config
python-debug
python-debug-config


1、安装命令：rpm -ivh rpm 包文件

rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps
whereis python3 |xargs rm -frv



rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps
Preparing packages...
python3-dnf-plugins-core-4.0.11-5.oe1.noarch
python3-dnf-4.2.15-8.oe1.noarch
python3-distro-1.3.0-5.noarch
python3-pyparsing-2.2.0-4.oe1.noarch
python3-subscription-manager-rhsm-1.23.3-5.oe1.riscv64
python3-dateutil-1:2.7.0-7.oe1.noarch
python3-iniparse-0.4-36.oe1.noarch
python3-hawkey-0.37.2-2.oe1.riscv64
python3-gobject-3.30.1-2.oe1.riscv64
python3-devel-3.8.5-13.oe1.riscv64
python3-rpm-generators-9-1.oe1.noarch
python3-cairo-1.18.2-1.riscv64
python3-libdnf-0.37.2-2.oe1.riscv64
python3-rpm-4.15.1-13.riscv64
python3-gpgme-1.13.1-5.oe1.riscv64
python3-libcomps-0.1.8-20.oe1.riscv64
python3-six-1.12.0-1.noarch
python3-gobject-base-3.30.1-2.oe1.riscv64
python3-pip-21.3.1-1.oe1.noarch
python3-setuptools-40.4.3-4.oe1.noarch
python3-3.8.5-13.oe1.riscv64


解决办法：在wget指令后添加--no-check-certificate

wget -c http://xxxxxxxxx.pth --no-check-certificate


rpm -ivh yum-4.2.15-8.oe1.noarch.rpm dnf-4.2.15-8.oe1.src.rpm python3-gpgme-1.13.1-5.oe1.riscv64.rpm python3-libdnf-0.37.2-2.oe1.riscv64.rpm python3-dnf-4.2.15-8.oe1.noarch.rpm python3-hawkey-0.37.2-2.oe1.riscv64.rpm python3-libcomps-0.1.8-20.oe1.riscv64.rpm python3-rpm-4.15.1-13.riscv64.rpm


rpm -q python3
python3-3.7.4-8.riscv64


rpm -q dnf
dnf-4.2.15-8.oe1.noarch

rpm -q python3-dnf
python3-dnf-4.2.15-8.oe1.noarch

rpm -qf /usr/bin/dnf
rpm -qf /usr/bin/python3

head -n2 /usr/bin/dnf

rpm -qf /usr/lib64/python3.7/site-packages/rpm/__init__.py
python3-rpm-4.15.1-13.riscv64

rpm -qf /usr/lib64/python3.7/site-packages/rpm/_rpm.cpython*
python3-rpm-4.15.1-13.riscv64

dnf repoquery --duplicated
Repository 'oerv' is missing name in configuration, using id.
Last metadata expiration check: 0:11:11 ago on Fri 15 Jul 2022 04:16:01 PM UTC.
nspr-0:4.20.0-4.oe1.riscv64
nspr-0:4.32.0-1.oe1.riscv64
nss-0:3.40.1-11.oe1.riscv64
nss-0:3.72.0-2.oe1.riscv64
nss-softokn-0:3.40.1-11.oe1.riscv64
nss-softokn-0:3.72.0-2.oe1.riscv64
nss-util-0:3.40.1-11.oe1.riscv64
nss-util-0:3.72.0-2.oe1.riscv64
obs-build-mkbaselibs-0:20211125-376.1.2.fc36.noarch
obs-build-mkbaselibs-0:20220422-386.1.noarch
pcre-0:8.43-5.oe1.riscv64
pcre-0:8.45-1.oe1.riscv64
readline-0:7.0-13.oe1.riscv64
readline-0:8.1-1.oe1.riscv64

rpm -q dnf python3-dnf python3 python3-rpm
dnf-4.2.15-8.oe1.noarch
python3-dnf-4.2.15-8.oe1.noarch
python3-3.7.4-8.riscv64
python3-rpm-4.15.1-13.riscv64

rpm -q --requires python3-dnf | grep python
/usr/bin/python3
python(abi) = 3.7
python3-gpg
python3-hawkey >= 0.37.0
python3-libcomps >= 0.1.8
python3-libdnf
python3-libdnf >= 0.37.0
python3-rpm >= 4.14.0

 rpm -q --requires python3-rpm | grep python
libpython3.7m.so.1.0()(64bit)
python(abi) = 3.7


ln -s -f python3.7 python3  
 ln -s -f python3.7 python3  




cp -rf /usr/lib/python3.7/site-packages/dnf-plugins /usr/lib/python3.8/site-packages/dnf-plugins && \
cp -rf /usr/lib/python3.7/site-packages/dnf /usr/lib/python3.8/site-packages/dnf && \
cp -rf /usr/lib64/python3.7/site-packages/libdnf /usr/lib64/python3.8/site-packages/libdnf && \
cp -rf /usr/lib64/python3.7/site-packages/rpm /usr/lib64/python3.8/site-packages/rpm && \
cp -rf /usr/lib64/python3.7/site-packages/libcomps /usr/lib64/python3.8/site-packages/libcomps && \
cp -rf /usr/lib64/python3.7/site-packages/gpg /usr/lib64/python3.8/site-packages/gpg && \
cp -rf /usr/lib64/python3.7/site-packages/hawkey /usr/lib64/python3.8/site-packages/hawkey

 mv /usr/lib64/python3.7/site-packages/gpg/_gpgme.cpython-37m-riscv64-linux-gnu.so  /usr/lib64/python3.8/site-packages/gpg/_gpgme.cpython-38m-riscv64-linux-gnu.so






 yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 57, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.8/site-packages/dnf/__init__.py", line 30, in <module>
    import dnf.base
  File "/usr/lib/python3.8/site-packages/dnf/base.py", line 31, in <module>
    from dnf.comps import CompsQuery
  File "/usr/lib/python3.8/site-packages/dnf/comps.py", line 36, in <module>
    import libcomps
  File "/usr/lib64/python3.8/site-packages/libcomps/__init__.py", line 1, in <module>
    from ._libpycomps import *
SystemError: categories_match() method: bad call flags

  find / -name cpython
/var/tmp/build-root/22.03-riscv64/usr/include/python3.9/cpython
/usr/include/python3.8/cpython
/usr/local/lib/python3.7/site-packages/virtualenv/create/via_global_ref/builtin/cpython

lib64/python2.7/distutils/tests/xxmodule.c



Rubygems安装
下载源码包

源码下载地址
https://rubygems.org/pages/download

解压

tar -zxvf rubygems-2.7.6.tgz
1
转到目录下

ruby setup.rb
1
如果需要更新版本

gem update



autoconf
error: MAKE_CASE_SENSITIVE does not appear in AM_CONDITIONAL
autoreconf -if
./configure
checking for Perl >=5.10.0 with Time::HiRes::stat... configure: error: no acceptable perl could be found in $PATH.
Perl 5.10.0 or later is required, with Time::HiRes::stat.

http://119.3.219.20:82/openEuler:/Mainline:/RISC-V/standard_riscv64/riscv64/perl-5.28.0-435.oe1.riscv64.rpm
http://119.3.219.20:82/openEuler:/Mainline:/RISC-V/standard_riscv64/riscv64/perl-devel-5.28.0-435.oe1.riscv64.rpm
http://119.3.219.20:82/openEuler:/Mainline:/RISC-V/standard_riscv64/riscv64/perl-libs-5.28.0-435.oe1.riscv64.rpm
rpm -ivh perl-*

which perl
/usr/bin/perl

永久方法：
① 修改 /etc/profile 在最后面加上 export PATH=$PATH:路径
② 修改 /home/user/.bashrc 在最后面加上 export PATH=$PATH:路径
 source /etc/profile


git clone http://git.sv.gnu.org/r/autoconf.git
make[1]: *** [Makefile:2214: tests/wrapper.in] Error 2
[Makefile:2171: man/autoconf.1] Error 127
rm Makefile

autoheader: error: AC_CONFIG_HEADERS not found in configure.ac

https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz
cd autoconf-2.71
./configure
make -j4
make install



[root@openEuler-RISCV-rare autoconf]# ll
total 1.7M
-rw-r--r-- 1 root root 8.0K Jul 16 19:13 AUTHORS
drwxr-xr-x 2 root root 4.0K Jul 16 19:13 bin
-rwxr-xr-x 1 root root 7.5K Jul 16 19:13 bootstrap
-rw-r--r-- 1 root root 1.5K Jul 16 19:13 BUGS
drwxr-xr-x 2 root root 4.0K Jul 16 19:13 build-aux
-rw-r--r-- 1 root root 3.7K Jul 16 19:13 cfg.mk
-rw-r--r-- 1 root root  13K Jul 16 19:13 ChangeLog.0
-rw-r--r-- 1 root root  68K Jul 16 19:13 ChangeLog.1
-rw-r--r-- 1 root root 420K Jul 16 19:13 ChangeLog.2
-rw-r--r-- 1 root root 836K Jul 16 19:13 ChangeLog.3
-rw-r--r-- 1 root root 7.4K Jul 16 19:13 configure.ac
-rw-r--r-- 1 root root  18K Jul 16 19:13 COPYING
-rw-r--r-- 1 root root 1.9K Jul 16 19:13 COPYING.EXCEPTION
-rw-r--r-- 1 root root  35K Jul 16 19:13 COPYINGv3
drwxr-xr-x 2 root root 4.0K Jul 16 19:13 doc
-rw-r--r-- 1 root root 4.5K Jul 16 19:13 GNUmakefile
-rw-r--r-- 1 root root 6.1K Jul 16 19:13 HACKING
drwxr-xr-x 8 root root 4.0K Jul 16 19:13 lib
drwxr-xr-x 2 root root 4.0K Jul 16 19:13 m4
-rw-r--r-- 1 root root  67K Jul 16 19:13 maint.mk
-rw-r--r-- 1 root root 6.2K Jul 16 19:13 Makefile.am
drwxr-xr-x 2 root root 4.0K Jul 16 19:13 man
-rw-r--r-- 1 root root 104K Jul 16 19:13 NEWS
-rw-r--r-- 1 root root 3.4K Jul 16 19:13 README
-rw-r--r-- 1 root root 1.2K Jul 16 19:13 README-alpha
-rw-r--r-- 1 root root 5.3K Jul 16 19:13 README-hacking
drwxr-xr-x 3 root root 4.0K Jul 16 19:13 tests
-rw-r--r-- 1 root root  22K Jul 16 19:13 THANKS
-rw-r--r-- 1 root root  23K Jul 16 19:13 TODO

[root@openEuler-RISCV-rare autoconf]# autoreconf -if

[root@openEuler-RISCV-rare autoconf]# ll
total 2.0M
aclocal.m4
autom4te.cache
configure
Makefile.in


[root@openEuler-RISCV-rare autoconf-2.71]# ll
total 2.1M
-rw-r--r-- 1 root root  30K Jan 28  2021 aclocal.m4



-rw-r--r-- 1 root root 8.8K Jul 16 19:05 config.log
-rwxr-xr-x 1 root root  28K Jul 16 19:05 config.status
-rwxr-xr-x 1 root root 138K Jan 28  2021 configure
-rw-r--r-- 1 root root 7.2K Jan 28  2021 configure.ac

drwxr-xr-x 8 root root 4.0K Jul 16 19:05 lib
drwxr-xr-x 2 root root 4.0K Jan 28  2021 m4
-rw-r--r-- 1 root root  66K Jan 28  2021 maint.mk
-rw-r--r-- 1 root root  86K Jul 16 19:05 Makefile
-rw-r--r-- 1 root root 6.4K Jan 28  2021 Makefile.am
-rw-r--r-- 1 root root  86K Jan 28  2021 Makefile.in





yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 57, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.8/site-packages/dnf/__init__.py", line 30, in <module>
    import dnf.base
  File "/usr/lib/python3.8/site-packages/dnf/base.py", line 31, in <module>
    from dnf.comps import CompsQuery
  File "/usr/lib/python3.8/site-packages/dnf/comps.py", line 36, in <module>
    import libcomps
  File "/usr/lib64/python3.8/site-packages/libcomps/__init__.py", line 1, in <module>
    from ._libpycomps import *
SystemError: categories_match() method: bad call flags


wget https://www.cpan.org/src/5.0/perl-5.36.0.tar.gz
     tar -xzf perl-5.36.0.tar.gz
     cd perl-5.36.0
     ./Configure -des -Dprefix=$HOME/localperl
     make -j4
     TEST_JOBS=3 make test
     make install

export PATH=root/localperl/bin/perl:$PATH

rpm -e --nodeps perl-5.28.0-435.oe1.riscv64
 perl -v
-bash: /usr/bin/perl: No such file or directory
ln -s  /usr/bin/perl  /root/localperl/bin/perl
ln: failed to create symbolic link '/root/localperl/bin/perl': File exists

ln -s /root/localperl/bin/perl  /usr/bin/perl  


./Configure -des -Dprefix=$HOME/localperl -Dusethreads

TEST_JOBS=3 make test_harness

curl -L http://cpanmin.us | perl - App::cpanminus
cpanm Module::Name



1.退出(detach)当前tmux
ctrl+b d
同时按住ctrl和b，松开再按d。
2.重新进入tmux
tmux attach -t <target-session>
即当前有很多session,选择目标的session
2.1 使用命令tmux ls来获取target-session
tmux ls
2.2 进入target-session为20的窗口：
tmux attach -t 20
经常tmux之后会得到很多sessions, 关闭session有如下方式：
1.关闭所有sessions：
tmux kill-server
2. 关闭指定session：
tmux kill-session -t targetSession



Modulenotfounderror: No Module Named _ctypes for Linux System

The main reason is that the _ctypes module in the ubuntu system requires the libffi-dev package to be installed. 
The _ctypes module depends on libffi-dev, so that has to be installed first.
Because the system is missing the installation of libffi-dev, it cannot use to _ctypes module.

https://github.com/libffi/libffi.git 不能直接build，
wget ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz
tar xvfz libffi-3.3.tar.gz
cd libffi-3.3
./configure --prefix=/usr/local/libffi/3_3
make
make install
export PATH=/usr/local/libffi/3_3:$PATH


autoscan: 扫描源代码以搜寻普通的可移植性问题，比如检查编译器，库，头文件等，生成文件configure.scan,它是configure.ac的一个雏形。

aclocal:根据已经安装的宏，用户定义宏和acinclude.m4文件中的宏将configure.ac文件所需要的宏集中定义到文件 aclocal.m4中。
aclocal是一个perl 脚本程序，它的定义是：“aclocal - create aclocal.m4 by scanning configure.ac”

automake:将http://Makefile.am中定义的结构建立http://Makefile.in，然后configure脚本将生成的http://Makefile.in文件转换 为Makefile。
如果在configure.ac中定义了一些特殊的宏，比如AC_PROG_LIBTOOL，它会调用libtoolize，否则它 会自己产生config.guess和config.sub

autoconf:将configure.ac中的宏展开，生成configure脚本。这个过程可能要用到aclocal.m4中定义的宏。


